import { ModifyAction } from "./actions";
import { ADD } from './const';

//对action进行限制 必须是在modifyaction上定义的
export default (state = 0, action: ModifyAction): number => {
    switch (action.type) {
        case ADD:
            return state + 1;
    }
}